package com.hua.argi;

/**
 * @author: _hua
 * @created: 2019/3/27.
 * @updater:
 * @description:
 */
public class MyQueueTest {

    public static void main(String args[]){
        MyQueue myQueue = new MyQueue(3);
        myQueue.insert(1);
        myQueue.insert(2);
        myQueue.insert(3);
        System.out.println(myQueue.peek());
        myQueue.remove();
        System.out.println(myQueue.peek());

        myQueue.insert(4);
        myQueue.insert(5);
        myQueue.remove();
        System.out.println(myQueue.peek());
    }
}
